<template>
  <div>
      <button @click="emit">触发</button>
  </div>
</template>
<script setup lang="ts">
import { ref,Ref} from "vue";
import { getCurrentInstance} from 'vue'
const instance = getCurrentInstance();
const emit =()=>{
  instance?.proxy?.$Bus.emit('wangyihaun',4)
}
</script>
<style scoped>

</style>
